package demo2;

public class Test {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.addFirst(3);
        list.addFirst(32);
        list.addFirst(347);
        list.addFirst(34);
        list.display();
        list.addIndex(2,385);
        list.display();
        list.remove(123);
        list.display();
        list.removeAllKey(34);
        list.display();
        System.out.println(list.contains(3));
        list.clear();
        list.display();
    }
}
